package com.service.business.borrow.controller.rep;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MemberBorrowDetailsRep {
    /**
     * 记录主键
     */
    private Integer id;

    /**
     * 借贷币种ID
     */
    private Integer coinsId;

    /**
     * 借贷金额
     */
    private BigDecimal borrowNum;

    /**
     * 借贷开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date borrowDate;

    /**
     * 还款日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payBackDate;

    /**
     * 累计还款金额
     */
    private BigDecimal totalReturnNum;

    /**
     * 已还金额
     */
    private BigDecimal returnedNum;

    /**
     * 最低还款
     */
    private BigDecimal minRepaymentNum;

    /**
     * 剩余金额
     */
    private BigDecimal surplusNum;

    /**
     * 记录状态 0-未还款 1-最低还款 2-还款延期 3-全额还款
     */
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    /**
     * 审核状态
     */
    private Integer authStatus;

    /**
     * 审核意见
     */
    private String rejectRemake;
}
